package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ReimburseMapper;
import com.ruoyi.system.domain.Reimburse;
import com.ruoyi.system.service.IReimburseService;

/**
 * 日常报销表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-18
 */
@Service
public class ReimburseServiceImpl implements IReimburseService 
{
    @Autowired
    private ReimburseMapper reimburseMapper;

    /**
     * 查询日常报销表
     * 
     * @param id 日常报销表主键
     * @return 日常报销表
     */
    @Override
    public Reimburse selectReimburseById(Long id)
    {
        return reimburseMapper.selectReimburseById(id);
    }

    /**
     * 查询日常报销表列表
     * 
     * @param reimburse 日常报销表
     * @return 日常报销表
     */
    @Override
    public List<Reimburse> selectReimburseList(Reimburse reimburse)
    {
        return reimburseMapper.selectReimburseList(reimburse);
    }

    /**
     * 新增日常报销表
     * 
     * @param reimburse 日常报销表
     * @return 结果
     */
    @Override
    public int insertReimburse(Reimburse reimburse)
    {
        return reimburseMapper.insertReimburse(reimburse);
    }

    /**
     * 修改日常报销表
     * 
     * @param reimburse 日常报销表
     * @return 结果
     */
    @Override
    public int updateReimburse(Reimburse reimburse)
    {
        return reimburseMapper.updateReimburse(reimburse);
    }

    /**
     * 批量删除日常报销表
     * 
     * @param ids 需要删除的日常报销表主键
     * @return 结果
     */
    @Override
    public int deleteReimburseByIds(Long[] ids)
    {
        return reimburseMapper.deleteReimburseByIds(ids);
    }

    /**
     * 删除日常报销表信息
     * 
     * @param id 日常报销表主键
     * @return 结果
     */
    @Override
    public int deleteReimburseById(Long id)
    {
        return reimburseMapper.deleteReimburseById(id);
    }
}
